<template>
  <div>
    <common-card title="累计销售额" :value="salesToday">
      <template>
        <div class="compare">
          <span>日同比</span>
          <span> {{salesGrowthLastDay}} </span>
          <i class="el-icon-caret-top" :style="{color:'red'}"></i>
        </div>
        <div class="compare">
          <span>月同比</span>
          <span> {{salesGrowthLastMonth}} </span>
          <i class="el-icon-caret-bottom" :style="{color:'green'}"></i>
        </div>
      </template>
      <template v-slot:footer>
        <span>昨日销售额</span>
        <span class="money"> {{salesLastDay}}</span>
      </template>
    </common-card>
    <!-- <div>{{reportData}}</div> -->
  </div>
</template>

<script>
import CommonCardMixin from "@/mixins/CommonCardMixin";
import CommonDataMixin from "@/mixins/CommonDataMixin";
export default {
  mixins: [CommonCardMixin,CommonDataMixin],

};
</script>

<style>
.compare {
  height: 50%;
  font-size: 12px;
  /* margin-top: 10px; */
}
.span {
  font-size: 12px;
}
.money {
  margin-left: 5px;
  color: #333;
  font-weight: 700;
}
</style>